import { readonly } from "core-decorators"
class supperperson {
    constructor(name,age){
        this.name = name
        this.age = age
    }

    // @readonly
    getname(){
        console.log('使用第三方装饰器:'+this.name+this.age)
    }
}

let reperson = new supperperson('xhh','24')
console.log(reperson.getname())

//添加readonly后就不允许再次定义了
// reperson.getname = function () {
//     console.log("改呀改")
// }
export default {
    supperperson
}